#pragma once

#include <atomic>
#include <string>
#include <functional>

#include <pthread.h>
#include <assert.h>

using namespace std;

class Thread {
public:
	typedef function <int (int)> ThreadFunc;
	Thread(const ThreadFunc &f);
	
	void start();
private:
	int _num;
	ThreadFunc _func;
};

